package com.atguigu.srb.core.service;

import com.atguigu.srb.core.pojo.entity.Borrower;
import com.atguigu.srb.core.pojo.vo.BorrowerApprovalVO;
import com.atguigu.srb.core.pojo.vo.BorrowerDetailVO;
import com.atguigu.srb.core.pojo.vo.BorrowerVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 借款人 服务类
 * </p>
 *
 * @author fan
 * @since 2021-11-22
 */
public interface BorrowerService extends IService<Borrower> {

    void saveBorrower(BorrowerVO borrowerVO,String userId);

    Integer getInitStatus(String userId);

    Page<Borrower> getPageList(Long page, Long limit, String keyword);

    Integer getStatus(Long id);

    BorrowerDetailVO getBorrowerDetail(Long id);

    void saveApproval(BorrowerApprovalVO borrowerApprovalVO);
}
